import request from '@/utils/request'

// 查询退药项记录列表
export function listDrugRefundItemRecord(query) {
  return request({
    url: '/dms/drugRefundItemRecord/list',
    method: 'get',
    params: query
  })
}

// 查询退药项记录详细
export function getDrugRefundItemRecord(id) {
  return request({
    url: '/dms/drugRefundItemRecord/' + id,
    method: 'get'
  })
}

// 新增退药项记录
export function addDrugRefundItemRecord(data) {
  return request({
    url: '/dms/drugRefundItemRecord',
    method: 'post',
    data: data
  })
}

// 修改退药项记录
export function updateDrugRefundItemRecord(data) {
  return request({
    url: '/dms/drugRefundItemRecord',
    method: 'put',
    data: data
  })
}

// 删除退药项记录
export function delDrugRefundItemRecord(id) {
  return request({
    url: '/dms/drugRefundItemRecord/' + id,
    method: 'delete'
  })
}
